(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[35],{112:function(e,t,n){"use strict";var c=n(0),a=n(57),s=n(4),o=n.n(s),r=n(79);n(133),t.a=({className:e,showSpinner:t=!1,children:n,variant:s="contained",...i})=>{const l=o()("wc-block-components-button","wp-element-button",e,s,{"wc-block-components-button--loading":t});return Object(c.createElement)(a.a,{className:l,...i},t&&Object(c.createElement)(r.a,null),Object(c.createElement)("span",{className:"wc-block-components-button__text"},n))}},114:function(e,t){},133:function(e,t){},27:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var c=n(0),a=n(14),s=n.n(a);function o(e){const t=Object(c.useRef)(e);return s()(e,t.current)||(t.current=e),t.current}},278:function(e,t,n){"use strict";var c=n(0),a=n(10);const s=Object(c.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(a.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));t.a=s},322:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var c=n(27),a=n(21),s=n(5),o=n(3);const r=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:n,availablePaymentMethods:r,availableExpressPaymentMethods:i}=Object(s.useSelect)((e=>{const t=e(o.PAYMENT_STORE_KEY);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}})),l=Object.values(r).map((({name:e})=>e)),u=Object.values(i).map((({name:e})=>e)),b=Object(a.getPaymentMethods)(),d=Object(a.getExpressPaymentMethods)(),m=Object.keys(b).reduce(((e,t)=>(l.includes(t)&&(e[t]=b[t]),e)),{}),p=Object.keys(d).reduce(((e,t)=>(u.includes(t)&&(e[t]=d[t]),e)),{}),h=Object(c.a)(m),O=Object(c.a)(p);return{paymentMethods:e?O:h,isInitialized:e?n:t}},i=()=>r(!1),l=()=>r(!0)},455:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(3),a=n(5),s=n(77),o=n(322);const r=()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:n,isAfterProcessing:r,isComplete:i,hasError:l}=Object(a.useSelect)((e=>{const t=e(c.CHECKOUT_STORE_KEY);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}})),{activePaymentMethod:u,isExpressPaymentMethodActive:b}=Object(a.useSelect)((e=>{const t=e(c.PAYMENT_STORE_KEY);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}})),{onSubmit:d}=Object(s.b)(),{paymentMethods:m={}}=Object(o.b)(),p=n||r||t,h=i&&!l;return{paymentMethodButtonLabel:(m[u]||{}).placeOrderButtonLabel,onSubmit:d,isCalculating:e,isDisabled:n||b,waitingForProcessing:p,waitingForRedirect:h}}},456:function(e,t){},457:function(e,t){},503:function(e,t,n){"use strict";n.r(t);var c=n(145),a=n(0),s=n(4),o=n.n(s),r=n(2),i=n(1),l=n(30),u=n(76),b=n(10),d=Object(a.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(a.createElement)(b.Path,{d:"M20 10.8H6.7l4.1-4.5-1.1-1.1-5.8 6.3 5.8 5.8 1.1-1.1-4-3.9H20z"}));n(457);var m=({link:e})=>{const t=e||l.c;return t?Object(a.createElement)("a",{href:t,className:"wc-block-components-checkout-return-to-cart-button"},Object(a.createElement)(u.a,{icon:d}),Object(i.__)("Return to Cart","woocommerce")):null},p=n(455),h=n(278),O=n(112),g=({label:e,fullWidth:t=!1})=>{const{onSubmit:n,isCalculating:c,isDisabled:s,waitingForProcessing:r,waitingForRedirect:i}=Object(p.a)();return Object(a.createElement)(O.a,{className:o()("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t}),onClick:n,disabled:c||s||r||i,showSpinner:r},i?Object(a.createElement)(u.a,{icon:h.a}):e)},j=n(37),w=n(12);const E=Object(i.__)("Place Order","woocommerce");n(456);var f={cartPageId:{type:"number",default:0},showReturnToCart:{type:"boolean",default:!0},className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}},placeOrderButtonLabel:{type:"string",default:E}};t.default=Object(c.withFilteredAttributes)(f)((({cartPageId:e,showReturnToCart:t,className:n,placeOrderButtonLabel:c})=>{const{paymentMethodButtonLabel:s}=Object(p.a)(),i=Object(w.applyCheckoutFilter)({filterName:"placeOrderButtonLabel",defaultValue:s||c||E});return Object(a.createElement)("div",{className:o()("wc-block-checkout__actions",n)},Object(a.createElement)(w.StoreNoticesContainer,{context:j.d.CHECKOUT_ACTIONS}),Object(a.createElement)("div",{className:"wc-block-checkout__actions_row"},t&&Object(a.createElement)(m,{link:Object(r.getSetting)("page-"+e,!1)}),Object(a.createElement)(g,{label:i,fullWidth:!t})))}))},79:function(e,t,n){"use strict";var c=n(0);n(114),t.a=()=>Object(c.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})}}]);